<section class="tlp-pane">
    <div class="tlp-pane-container">
        <div class="tlp-pane-header">
            <h1 class="tlp-pane-title">
                {{# gettext }} PHPWiki {{/ gettext }}
                <span class="tlp-tooltip tlp-tooltip-top permission-per-group-header-tooltip" data-tlp-tooltip="
                    {{# gettext }} Page permissions are not listed. {{/ gettext }}
                ">
                    <i class="fa fa-question-circle" aria-label="
                        {{# gettext }} Page permissions are not listed. {{/ gettext }}
                    "></i>
                </span>
            </h1>
        </div>

            <section class="tlp-pane-section">
                <h2 class="tlp-pane-subtitle">{{# gettext }} Global permissions {{/ gettext }}</h2>
                <table class="tlp-table permission-per-group-table">
                    <thead>
                        <tr class="permission-per-group-double-column-table">
                            <th>{{# gettext }} Permission {{/ gettext }}</th>
                            <th>{{# gettext }} Granted groups {{/ gettext }}</th>
                        </tr>
                    </thead>
                    <tbody>
                    {{# permissions }}
                        <tr>
                            <td>
                                {{# url}}
                                    <a href="{{ url }}">{{ name }}</a>
                                {{/ url }}
                                {{^ url}}
                                    {{ name }}
                                {{/ url }}
                            </td>
                            <td>
                                {{# groups }}
                                    <span class="
                                        {{# is_project_admin }}tlp-badge-danger tlp-badge-outline{{/ is_project_admin }}
                                        {{# is_static }}tlp-badge-primary tlp-badge-outline{{/ is_static }}
                                        {{# is_custom }}tlp-badge-secondary{{/ is_custom }}
                                        ">{{ name }}</span>
                                {{/ groups }}
                            </td>
                        </tr>
                    {{/ permissions }}
                    {{^ has_permissions }}
                        <tr>
                            <td colspan="2" class="tlp-table-cell-empty">
                                {{# gettext }} {{ user_group_name }} has no global permission {{/ gettext }}
                            </td>
                        </tr>
                    {{/ has_permissions }}
                    </tbody>
                </table>
            </section>
    </div>
</section>
